<div class="portlet">
   <!--  <div class="portlet-actions">
        <button class="btn blue btn-sm" ng-click="grid.add()"><i class="fa fa-plus"></i> 新增</button>
    </div> -->
    <form class="portlet-search-body" name="queryForm">
    <input type="text" class="form-control search-item" ng-model="empName" placeholder="员工姓名">
        <div class="search-item">
            <button class="btn btn-icon-only default"><i class="fa fa-chevron-right"></i></button>
            <button class="btn btn-sm query" ng-click="grid.query();"><i class="fa fa-search"></i> 查询</button>
            <button class="btn btn-sm reset" ng-click="grid.reset();"><i class="fa fa-eraser"></i> 重置</button>
        </div>
    </form>
    <div class="portlet-body">
        <table ed-grid="grid"  class="table table-striped table-bordered table-advance table-hover"
               data-options="url: 'salaryEmpBasic/query.do', modelText: '员工工资列表', form: 'queryForm', modal: 'modal'">
            <thead>
            <tr>
                <th data-options="field: 'empName'">员工姓名</th>
                <th data-options="field: 'baseSalary'">基本工资</th>
                <th data-options="field: 'workingAgeSubsidy'">工龄补贴</th>
                <th data-options="field: 'positionSalary'">岗位工资</th>
                <th data-options="field: 'socialSecurity'">社保</th>
                <th data-options="field: 'attendance'">考勤</th>
                <th data-options="field: 'remark'">备注</th>
                <th>操作</th>
            </tr>
            </thead>
        </table>
    </div>
</div>

<div ed-modal="modal" data-options="title: '员工工资', static: true, width: 720, defaultButton:false,onHidden:'reset'">
    <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate name="validateForm">
        <div class="form-body">
			<div class="form-group">
				<label class="col-md-4 control-label">基本工资</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="baseSalary" ng-model="salaryEmpBasic.baseSalary" ed-validate="integer"  required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-4 control-label">工龄补贴</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="workingAgeSubsidy" ng-model="salaryEmpBasic.workingAgeSubsidy" ed-validate="integer" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-4 control-label">岗位工资</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="positionSalary" ng-model="salaryEmpBasic.positionSalary" ed-validate="integer" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-4 control-label">社保</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="socialSecurity" ng-model="salaryEmpBasic.socialSecurity" ed-validate="integer" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-4 control-label">考勤</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="attendance" ng-model="salaryEmpBasic.attendance" ed-validate="integer" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-4 control-label">备注</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="remark" ng-model="salaryEmpBasic.remark" required>
				</div>
			</div>
        </div>
        <div class="form-actions">
            <button type="button" class="btn default" ng-click="grid.cancel();">
                <i class="fa fa-times"></i> 取消
            </button>
            <button type="button" class="btn blue" ng-click="grid.save();">
                <i class="fa fa-times"></i> 确定
            </button>
        </div>
    </form>
</div>

<div ed-modal="empQuotaModal" data-options="title: '员工工资定额', static: true, width: 720, defaultButton:false,onHidden:'reset'">
    <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate name="validateForm">
        <div class="form-body">
        {{empQuotaArray}}
			<div class="form-group" ng-repeat="empQuota in empQuotaArray">
				<label class="col-md-4 control-label">{{empQuota.workTypeName}}</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="baseSalary" value={{empQuota.empQuota}} ed-validate="integer"  required>
				</div>
			</div>
        </div>
        <div class="form-actions">
            <button type="button" class="btn default" ng-click="grid.cancel();">
                <i class="fa fa-times"></i> 取消
            </button>
            <button type="button" class="btn blue" ng-click="grid.save();">
                <i class="fa fa-times"></i> 确定
            </button>
        </div>
    </form>
</div>
